<?php
/*
 * code to flag project as deleted
*/
session_start();
if(isset($_SESSION['userid'])){

	include("../inc_files/utils/dbconnection.php");

	$query = "UPDATE projects SET Deleted = 1 WHERE ProjectID='" . $_POST["projectid"]."';";
	echo($mysqli->query( $query ));

	//tidy up database connection
	$mysqli->close();
} else {
	header("location: /f21na/login.php");
}

?>